﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类zFeeType
	/// </summary>
	[Serializable]
	public class zFeeType : Entity 
	{ 
		 public zFeeType() 
            : base("zFeeType") 
        { 

        }


		#region Model
		private int _UID;
		private string _FeeKIND;
		private string _NAME;
		private string _INCOMESUBJECT;
		private string _COST1SUBJECT;
		private string _COST2SUBJECT;
		private string _INSTEADSUBJECT;
		private string _NOTE;
	 
		/// <summary>
		/// 
		/// </summary>
		public int UID
		{
			get{ return _UID; }
			set
			{
				this.OnPropertyValueChange(_.UID,_UID,value);
				this._UID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string FeeKIND
		{
			get{ return _FeeKIND; }
			set
			{
				this.OnPropertyValueChange(_.FeeKIND,_FeeKIND,value);
				this._FeeKIND = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string NAME
		{
			get{ return _NAME; }
			set
			{
				this.OnPropertyValueChange(_.NAME,_NAME,value);
				this._NAME = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string INCOMESUBJECT
		{
			get{ return _INCOMESUBJECT; }
			set
			{
				this.OnPropertyValueChange(_.INCOMESUBJECT,_INCOMESUBJECT,value);
				this._INCOMESUBJECT = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string COST1SUBJECT
		{
			get{ return _COST1SUBJECT; }
			set
			{
				this.OnPropertyValueChange(_.COST1SUBJECT,_COST1SUBJECT,value);
				this._COST1SUBJECT = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string COST2SUBJECT
		{
			get{ return _COST2SUBJECT; }
			set
			{
				this.OnPropertyValueChange(_.COST2SUBJECT,_COST2SUBJECT,value);
				this._COST2SUBJECT = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string INSTEADSUBJECT
		{
			get{ return _INSTEADSUBJECT; }
			set
			{
				this.OnPropertyValueChange(_.INSTEADSUBJECT,_INSTEADSUBJECT,value);
				this._INSTEADSUBJECT = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string NOTE
		{
			get{ return _NOTE; }
			set
			{
				this.OnPropertyValueChange(_.NOTE,_NOTE,value);
				this._NOTE = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的标识列
		/// </summary>
		public override Field GetIdentityField()
		{
			return _.UID;
		}
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.UID			};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.UID,
				_.FeeKIND,
				_.NAME,
				_.INCOMESUBJECT,
				_.COST1SUBJECT,
				_.COST2SUBJECT,
				_.INSTEADSUBJECT,
				_.NOTE
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_UID,
				_FeeKIND,
				_NAME,
				_INCOMESUBJECT,
				_COST1SUBJECT,
				_COST2SUBJECT,
				_INSTEADSUBJECT,
				_NOTE
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "UID":
                    this._UID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "FeeKIND":
                    this._FeeKIND = DataHelper.ConvertValue<string>(value);
                    break; 
				case "NAME":
                    this._NAME = DataHelper.ConvertValue<string>(value);
                    break; 
				case "INCOMESUBJECT":
                    this._INCOMESUBJECT = DataHelper.ConvertValue<string>(value);
                    break; 
				case "COST1SUBJECT":
                    this._COST1SUBJECT = DataHelper.ConvertValue<string>(value);
                    break; 
				case "COST2SUBJECT":
                    this._COST2SUBJECT = DataHelper.ConvertValue<string>(value);
                    break; 
				case "INSTEADSUBJECT":
                    this._INSTEADSUBJECT = DataHelper.ConvertValue<string>(value);
                    break; 
				case "NOTE":
                    this._NOTE = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "UID":
                    return this._UID; 
				case "FeeKIND":
                    return this._FeeKIND; 
				case "NAME":
                    return this._NAME; 
				case "INCOMESUBJECT":
                    return this._INCOMESUBJECT; 
				case "COST1SUBJECT":
                    return this._COST1SUBJECT; 
				case "COST2SUBJECT":
                    return this._COST2SUBJECT; 
				case "INSTEADSUBJECT":
                    return this._INSTEADSUBJECT; 
				case "NOTE":
                    return this._NOTE; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","zFeeType");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UID = new Field("UID","zFeeType","UID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field FeeKIND = new Field("FeeKIND","zFeeType","FeeKIND");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field NAME = new Field("NAME","zFeeType","NAME");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field INCOMESUBJECT = new Field("INCOMESUBJECT","zFeeType","INCOMESUBJECT");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field COST1SUBJECT = new Field("COST1SUBJECT","zFeeType","COST1SUBJECT");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field COST2SUBJECT = new Field("COST2SUBJECT","zFeeType","COST2SUBJECT");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field INSTEADSUBJECT = new Field("INSTEADSUBJECT","zFeeType","INSTEADSUBJECT");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field NOTE = new Field("NOTE","zFeeType","NOTE");
		}
		#endregion

 
	}
}

